package com.zoewin.zephyr.reportjasper.entity;

import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by WQL on 2020/1/6
 * CEASE TO STRUGGLE AND YOU CEASE TO LIVE
 */
    public class TableEntity {
    private List<TableEntity> tableDatas;
    private JRBeanCollectionDataSource params;

    public TableEntity(List list) {
        this.params = new JRBeanCollectionDataSource(list);
        List<TableEntity> dataList = new ArrayList();
        dataList.add(this);
        this.tableDatas=dataList;
    }

    public List<TableEntity> getTableDatas() {
        return tableDatas;
    }

    public JRBeanCollectionDataSource getParams() {
        return params;
    }
}
